import request from '@/utils/request'

// 中奖名单
export function codeList(params) {
    return request({
        url: '/user/code/index',
        method: 'get',
        params
    })
}


export function orderSend(data) {
    return request({
        url: '/user/code/order',
        method: 'post',
        data
    })
}

// 撤销
export function chanelDestroyCode(data) {
    return request({
        url: '/user/code/chanelDestroyCode',
        method: 'post',
        data
    })
}

// 核销
export function destroySelectCode(data) {
    return request({
        url: '/user/code/destroySelectCode',
        method: 'post',
        data
    })
}

export function setAddress(data) {
    return request({
        url: '/user/code/setAddress',
        method: 'post',
        data
    })
}

export function selectOrder(params) {
    return request({
        url: '/user/code/selectOrder',
        method: 'get',
        params
    })
}

export function destroyCode(data) {
    return request({
        url: '/user/code/destroySelectCode',
        method: 'post',
        data
    })
}

export function drawInfo(params) {
    return request({
        url: '/user/code/drawInfo',
        method: 'get',
        params
    })
}

// 导出中奖名单
export function indexExport(data) {
    return request({
        url: '/user/code/indexExport',
        method: 'post',
        data
    })
}
